.class public Lcom/ninesky/browser/BookmarksActivity;
.super Landroid/app/Activity;


# instance fields
.field private final a:Z

.field private b:Landroid/widget/ListView;

.field private c:Lcom/ninesky/browser/du;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;

.field private f:Lcom/ninesky/widget/g;

.field private g:Lcom/ninesky/browser/view/TagCloudView;

.field private h:Z

.field private i:Z

.field private j:Z

.field private k:Z

.field private l:I

.field private m:Landroid/database/Cursor;

.field private n:Z

.field private o:Landroid/widget/AdapterView$OnItemLongClickListener;

.field private p:I

.field private q:Landroid/widget/AdapterView$OnItemClickListener;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    iput-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->a:Z

    iput-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->i:Z

    iput-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    new-instance v0, Lcom/ninesky/browser/do;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/do;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->o:Landroid/widget/AdapterView$OnItemLongClickListener;

    new-instance v0, Lcom/ninesky/browser/dl;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/dl;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->q:Landroid/widget/AdapterView$OnItemClickListener;

    return-void
.end method

.method private a(ILandroid/content/Intent;)V
    .locals 2

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getParent()Landroid/app/Activity;

    move-result-object v1

    if-nez v1, :cond_0

    invoke-virtual {p0, p1, p2}, Lcom/ninesky/browser/BookmarksActivity;->setResult(ILandroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    move-object v0, v1

    check-cast v0, Lcom/ninesky/browser/BookmarkHistoryActivity;

    move-object p0, v0

    invoke-virtual {p0, p1, p2}, Lcom/ninesky/browser/BookmarkHistoryActivity;->a(ILandroid/content/Intent;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/ninesky/browser/BookmarksActivity;I)V
    .locals 8

    const/4 v7, 0x0

    new-instance v1, Landroid/content/Intent;

    const-class v0, Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-direct {v1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "bookmark"

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/BookmarksActivity;->startActivity(Landroid/content/Intent;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    new-instance v3, Landroid/os/Bundle;

    invoke-direct {v3}, Landroid/os/Bundle;-><init>()V

    if-ltz p1, :cond_1

    invoke-virtual {v0}, Lcom/ninesky/browser/du;->getCount()I

    move-result v4

    if-lt p1, v4, :cond_2

    :cond_1
    move-object v0, v3

    goto :goto_0

    :cond_2
    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    const-string v4, "title"

    const/4 v5, 0x5

    invoke-interface {v0, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v4, "url"

    const/4 v5, 0x1

    invoke-interface {v0, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v4, "tags"

    const/16 v5, 0xb

    invoke-interface {v0, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v4, "displayorder"

    const/16 v5, 0xc

    invoke-interface {v0, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const/4 v4, 0x6

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v4

    if-eqz v4, :cond_3

    const-string v5, "favicon"

    array-length v6, v4

    invoke-static {v4, v7, v6}, Landroid/graphics/BitmapFactory;->decodeByteArray([BII)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    :cond_3
    const-string v4, "id"

    invoke-interface {v0, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    invoke-virtual {v3, v4, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    move-object v0, v3

    goto :goto_0
.end method

.method static synthetic a(Lcom/ninesky/browser/BookmarksActivity;Landroid/content/Intent;)V
    .locals 1

    const/4 v0, -0x1

    invoke-direct {p0, v0, p1}, Lcom/ninesky/browser/BookmarksActivity;->a(ILandroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/BookmarksActivity;Landroid/database/Cursor;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/BookmarksActivity;->m:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/BookmarksActivity;[Lcom/ninesky/browser/provider/g;Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->f:Lcom/ninesky/widget/g;

    if-nez v0, :cond_0

    new-instance v0, Lcom/ninesky/widget/g;

    invoke-direct {v0, p0}, Lcom/ninesky/widget/g;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->f:Lcom/ninesky/widget/g;

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030028

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c007e

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/TagCloudView;

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->g:Lcom/ninesky/browser/view/TagCloudView;

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->g:Lcom/ninesky/browser/view/TagCloudView;

    new-instance v2, Lcom/ninesky/browser/dk;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/dk;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/view/TagCloudView;->a(Lcom/ninesky/browser/view/bi;)V

    const v0, 0x7f0c007f

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    new-instance v2, Lcom/ninesky/browser/di;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/di;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->f:Lcom/ninesky/widget/g;

    invoke-virtual {v0, v1}, Lcom/ninesky/widget/g;->a(Landroid/view/View;)V

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->g:Lcom/ninesky/browser/view/TagCloudView;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/view/TagCloudView;->a([Lcom/ninesky/browser/provider/g;)V

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->f:Lcom/ninesky/widget/g;

    invoke-virtual {v0, p2}, Lcom/ninesky/widget/g;->b(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/BookmarksActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    return v0
.end method

.method static synthetic b(Lcom/ninesky/browser/BookmarksActivity;I)V
    .locals 4

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v1, "new_window"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    const/4 v1, -0x1

    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->a(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    move-result-object v0

    invoke-direct {p0, v1, v0}, Lcom/ninesky/browser/BookmarksActivity;->a(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->finish()V

    return-void
.end method

.method static synthetic b(Lcom/ninesky/browser/BookmarksActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->h:Z

    return v0
.end method

.method static synthetic c(Lcom/ninesky/browser/BookmarksActivity;I)Landroid/content/Intent;
    .locals 14

    const/high16 v13, 0x3f80

    const/4 v10, 0x0

    const/4 v9, 0x1

    const/high16 v12, 0x4000

    const/4 v11, 0x0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->a(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->d(I)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v2, :cond_0

    const/4 v2, 0x0

    :goto_0
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    new-instance v4, Landroid/content/Intent;

    const-string v5, "android.intent.action.VIEW"

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    invoke-direct {v4, v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v0

    int-to-long v5, v0

    const/16 v0, 0x20

    shl-long/2addr v5, v0

    invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I

    move-result v0

    int-to-long v7, v0

    or-long/2addr v5, v7

    const-string v0, "com.android.browser.application_id"

    invoke-static {v5, v6}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "android.intent.extra.shortcut.INTENT"

    invoke-virtual {v3, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const-string v0, "android.intent.extra.shortcut.NAME"

    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    if-eqz v2, :cond_1

    iget v0, p0, Lcom/ninesky/browser/BookmarksActivity;->l:I

    iget v1, p0, Lcom/ninesky/browser/BookmarksActivity;->l:I

    sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    new-instance v4, Landroid/graphics/Rect;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v6

    invoke-direct {v4, v11, v11, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v5, Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v7

    invoke-direct {v5, v11, v11, v6, v7}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v6, Landroid/graphics/Paint;

    invoke-direct {v6, v9}, Landroid/graphics/Paint;-><init>(I)V

    invoke-virtual {v6, v9}, Landroid/graphics/Paint;->setFilterBitmap(Z)V

    invoke-virtual {v1, v2, v4, v5, v6}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    new-instance v2, Landroid/graphics/Path;

    invoke-direct {v2}, Landroid/graphics/Path;-><init>()V

    sget-object v4, Landroid/graphics/Path$FillType;->INVERSE_WINDING:Landroid/graphics/Path$FillType;

    invoke-virtual {v2, v4}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V

    new-instance v4, Landroid/graphics/RectF;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    int-to-float v5, v5

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v7

    int-to-float v7, v7

    invoke-direct {v4, v10, v10, v5, v7}, Landroid/graphics/RectF;-><init>(FFFF)V

    invoke-virtual {v4, v13, v13}, Landroid/graphics/RectF;->inset(FF)V

    const/high16 v5, 0x4100

    const/high16 v7, 0x4100

    sget-object v8, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;

    invoke-virtual {v2, v4, v5, v7, v8}, Landroid/graphics/Path;->addRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Path$Direction;)V

    new-instance v4, Landroid/graphics/PorterDuffXfermode;

    sget-object v5, Landroid/graphics/PorterDuff$Mode;->CLEAR:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v4, v5}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v6, v4}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    invoke-virtual {v1, v2, v6}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    const-string v1, "android.intent.extra.shortcut.ICON"

    invoke-virtual {v3, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    :goto_1
    const-string v0, "duplicate"

    invoke-virtual {v3, v0, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    return-object v3

    :cond_0
    iget-object v2, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v2, p1}, Lcom/ninesky/browser/du;->f(I)Landroid/graphics/Bitmap;

    move-result-object v2

    goto/16 :goto_0

    :cond_1
    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->b(I)Landroid/graphics/Bitmap;

    move-result-object v0

    if-nez v0, :cond_2

    const-string v0, "android.intent.extra.shortcut.ICON_RESOURCE"

    const v1, 0x7f020012

    invoke-static {p0, v1}, Landroid/content/Intent$ShortcutIconResource;->fromContext(Landroid/content/Context;I)Landroid/content/Intent$ShortcutIconResource;

    move-result-object v1

    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto :goto_1

    :cond_2
    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f020012

    invoke-static {v1, v2}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v1, v2, v9}, Landroid/graphics/Bitmap;->copy(Landroid/graphics/Bitmap$Config;Z)Landroid/graphics/Bitmap;

    move-result-object v2

    new-instance v4, Landroid/graphics/Canvas;

    invoke-direct {v4, v2}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    new-instance v5, Landroid/graphics/Paint;

    const/4 v6, 0x3

    invoke-direct {v5, v6}, Landroid/graphics/Paint;-><init>(I)V

    sget-object v6, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    const/4 v6, -0x1

    invoke-virtual {v5, v6}, Landroid/graphics/Paint;->setColor(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v6

    iget v6, v6, Landroid/util/DisplayMetrics;->density:F

    const/high16 v7, 0x4180

    mul-float/2addr v7, v6

    mul-float/2addr v6, v12

    mul-float v8, v12, v6

    add-float/2addr v7, v8

    new-instance v8, Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    invoke-direct {v8, v11, v11, v9, v1}, Landroid/graphics/Rect;-><init>(IIII)V

    invoke-virtual {v8}, Landroid/graphics/Rect;->exactCenterX()F

    move-result v1

    div-float v9, v7, v12

    sub-float/2addr v1, v9

    invoke-virtual {v8}, Landroid/graphics/Rect;->exactCenterY()F

    move-result v8

    div-float v9, v7, v12

    sub-float/2addr v8, v9

    sub-float/2addr v8, v6

    new-instance v9, Landroid/graphics/RectF;

    add-float v10, v1, v7

    add-float/2addr v7, v8

    invoke-direct {v9, v1, v8, v10, v7}, Landroid/graphics/RectF;-><init>(FFFF)V

    invoke-virtual {v4, v9, v12, v12, v5}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    invoke-virtual {v9, v6, v6}, Landroid/graphics/RectF;->inset(FF)V

    const/4 v1, 0x0

    invoke-virtual {v4, v0, v1, v9, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    const-string v0, "android.intent.extra.shortcut.ICON"

    invoke-virtual {v3, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto/16 :goto_1
.end method

.method static synthetic c(Lcom/ninesky/browser/BookmarksActivity;)Lcom/ninesky/browser/du;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    return-object v0
.end method

.method static synthetic d(Lcom/ninesky/browser/BookmarksActivity;)Landroid/database/Cursor;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->m:Landroid/database/Cursor;

    return-object v0
.end method

.method private d(I)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->b(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic d(Lcom/ninesky/browser/BookmarksActivity;I)V
    .locals 4

    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f0700b4

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f0700b9

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/BookmarksActivity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "%s"

    invoke-direct {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->d(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070005

    new-instance v2, Lcom/ninesky/browser/dg;

    invoke-direct {v2, p0, p1}, Lcom/ninesky/browser/dg;-><init>(Lcom/ninesky/browser/BookmarksActivity;I)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070006

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic e(Lcom/ninesky/browser/BookmarksActivity;I)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BookmarksActivity;->a(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    const/4 v1, -0x1

    invoke-direct {p0, v1, v0}, Lcom/ninesky/browser/BookmarksActivity;->a(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->finish()V

    return-void
.end method

.method static synthetic e(Lcom/ninesky/browser/BookmarksActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->i:Z

    return v0
.end method

.method static synthetic f(Lcom/ninesky/browser/BookmarksActivity;I)V
    .locals 6

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string v3, "id"

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v0, "displayorder"

    iget v3, p0, Lcom/ninesky/browser/BookmarksActivity;->p:I

    invoke-virtual {v2, v0, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    invoke-virtual {v1, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    const/4 v0, -0x1

    invoke-direct {p0, v0, v1}, Lcom/ninesky/browser/BookmarksActivity;->a(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->finish()V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v4

    long-to-int v0, v4

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic f(Lcom/ninesky/browser/BookmarksActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->j:Z

    return v0
.end method

.method static synthetic g(Lcom/ninesky/browser/BookmarksActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    return v0
.end method

.method static synthetic h(Lcom/ninesky/browser/BookmarksActivity;)Landroid/widget/Button;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic i(Lcom/ninesky/browser/BookmarksActivity;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic j(Lcom/ninesky/browser/BookmarksActivity;)Lcom/ninesky/widget/g;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->f:Lcom/ninesky/widget/g;

    return-object v0
.end method

.method static synthetic k(Lcom/ninesky/browser/BookmarksActivity;)Landroid/widget/Button;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->d:Landroid/widget/Button;

    return-object v0
.end method


# virtual methods
.method public final a(I)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->c(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method final a(Landroid/database/Cursor;)V
    .locals 2

    invoke-interface {p1}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_0
.end method

.method public final b(I)Landroid/graphics/Bitmap;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->e(I)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0
.end method

.method public final c(I)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/du;->a(I)V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    goto :goto_0
.end method

.method public onBackPressed()V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/ninesky/browser/BookmarksActivity;->a(ILandroid/content/Intent;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->i:Z

    invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9

    const v8, 0x7f0c000a

    const-wide/high16 v4, 0x3fe0

    const/16 v3, 0x8

    const/4 v7, 0x1

    const/4 v6, 0x0

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const/high16 v1, 0x105

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/ninesky/browser/BookmarksActivity;->l:I

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "android.intent.action.CREATE_SHORTCUT"

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iput-boolean v7, p0, Lcom/ninesky/browser/BookmarksActivity;->j:Z

    :cond_0
    const-string v1, "definedQuickBookMark"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    const-string v2, "definedQuickBookMark"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    iput-boolean v7, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_1

    const-string v2, "displayorder"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/ninesky/browser/BookmarksActivity;->p:I

    :cond_1
    const-string v1, "disable_new_window"

    invoke-virtual {v0, v1, v6}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/BookmarksActivity;->h:Z

    const-string v1, "mostVisited"

    invoke-virtual {v0, v1, v6}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->j:Z

    if-eqz v0, :cond_2

    const v0, 0x7f0700de

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->setTitle(I)V

    :cond_2
    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    if-eqz v0, :cond_8

    const v0, 0x7f030014

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->setContentView(I)V

    const v0, 0x7f0c002b

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    const v0, 0x7f0c0012

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    invoke-virtual {p0, v8}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iget-boolean v2, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setVisibility(I)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    invoke-virtual {v1, v6}, Landroid/widget/Button;->setVisibility(I)V

    :cond_3
    new-instance v2, Lcom/ninesky/browser/dj;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/dj;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/BookmarksActivity;->e:Landroid/widget/Button;

    new-instance v2, Lcom/ninesky/browser/dh;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/dh;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Lcom/ninesky/browser/dt;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/dt;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_0
    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    if-eqz v0, :cond_c

    const-string v0, "visits != 0"

    move-object v3, v0

    :goto_1
    sget-object v1, Lcom/ninesky/browser/provider/e;->a:Landroid/net/Uri;

    sget-object v2, Lcom/ninesky/browser/provider/e;->b:[Ljava/lang/String;

    const/4 v4, 0x0

    const-string v5, "visits DESC"

    move-object v0, p0

    invoke-virtual/range {v0 .. v5}, Lcom/ninesky/browser/BookmarksActivity;->managedQuery(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->m:Landroid/database/Cursor;

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->m:Landroid/database/Cursor;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Landroid/database/Cursor;)V

    :cond_4
    new-instance v0, Lcom/ninesky/browser/du;

    iget-object v1, p0, Lcom/ninesky/browser/BookmarksActivity;->m:Landroid/database/Cursor;

    iget-boolean v2, p0, Lcom/ninesky/browser/BookmarksActivity;->k:Z

    invoke-direct {v0, p0, v1, v2}, Lcom/ninesky/browser/du;-><init>(Lcom/ninesky/browser/BookmarksActivity;Landroid/database/Cursor;Z)V

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    new-instance v1, Lcom/ninesky/browser/dp;

    invoke-direct {v1, p0, v3}, Lcom/ninesky/browser/dp;-><init>(Lcom/ninesky/browser/BookmarksActivity;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/du;->setFilterQueryProvider(Landroid/widget/FilterQueryProvider;)V

    new-instance v0, Lcom/ninesky/browser/dn;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/dn;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-static {}, Lcom/ninesky/browser/BookmarkHistoryActivity;->a()Lcom/ninesky/browser/az;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/az;->a(Landroid/webkit/WebIconDatabase$IconListener;)V

    const v0, 0x7f0c0011

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    if-nez v0, :cond_6

    const v0, 0x7f0c0010

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, v6}, Landroid/widget/ListView;->setDrawSelectorOnTop(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, v7}, Landroid/widget/ListView;->setVerticalScrollBarEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/ninesky/browser/BookmarksActivity;->q:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->j:Z

    if-nez v0, :cond_5

    iget-boolean v0, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/ninesky/browser/BookmarksActivity;->o:Landroid/widget/AdapterView$OnItemLongClickListener;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    :cond_5
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    :cond_6
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/ninesky/browser/BookmarksActivity;->c:Lcom/ninesky/browser/du;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    :cond_7
    return-void

    :cond_8
    const v0, 0x7f030003

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->setContentView(I)V

    const v0, 0x7f0c0012

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    invoke-virtual {p0, v8}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iget-boolean v2, p0, Lcom/ninesky/browser/BookmarksActivity;->n:Z

    if-nez v2, :cond_9

    iget-boolean v2, p0, Lcom/ninesky/browser/BookmarksActivity;->j:Z

    if-eqz v2, :cond_a

    :cond_9
    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    invoke-virtual {v1, v6}, Landroid/widget/Button;->setVisibility(I)V

    :cond_a
    new-instance v2, Lcom/ninesky/browser/ds;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/ds;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Lcom/ninesky/browser/dr;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/dr;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0005

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BookmarksActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->d:Landroid/widget/Button;

    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    invoke-virtual {p0}, Lcom/ninesky/browser/BookmarksActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    if-le v0, v1, :cond_b

    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->d:Landroid/widget/Button;

    int-to-double v1, v1

    mul-double/2addr v1, v4

    double-to-int v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setMaxWidth(I)V

    :goto_2
    iget-object v0, p0, Lcom/ninesky/browser/BookmarksActivity;->d:Landroid/widget/Button;

    new-instance v1, Lcom/ninesky/browser/dq;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/dq;-><init>(Lcom/ninesky/browser/BookmarksActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_b
    iget-object v1, p0, Lcom/ninesky/browser/BookmarksActivity;->d:Landroid/widget/Button;

    int-to-double v2, v0

    mul-double/2addr v2, v4

    double-to-int v0, v2

    invoke-virtual {v1, v0}, Landroid/widget/Button;->setMaxWidth(I)V

    goto :goto_2

    :cond_c
    const-string v0, "bookmark = 1"

    move-object v3, v0

    goto/16 :goto_1
.end method

.method protected onPause()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    invoke-static {p0}, Lcom/mobclick/android/c;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    invoke-static {p0}, Lcom/mobclick/android/c;->b(Landroid/content/Context;)V

    return-void
.end method
